function [] = rgbgamut();

% RGBGAMUT - various RGB images.

% By:   S.C. Molitor (smolitor@bme.jhu.edu)
% Date: April 12, 2000

[x, y] = meshgrid([0 : 255], [0 : 255]);
rgb(:, :, 1) = uint8(x);
rgb(:, :, 3) = uint8(y);
index = [0 : 16 : 256];
index(end) = 255;
for i = index
   rgb(:, :, 2) = uint8(i);
   filename = sprintf('c:\\scm\\rbg%03d.jpg', i);
   imwrite(rgb, filename, 'jpg', 'Quality', 100);
end
return

